﻿@model FortuneArterial.Site.Model.Site.SiteInfo
@{
    ViewBag.Title = "Edit Site";
}

<form class="form-horizontal" method="POST" action="/Manage/Site/Edit">

    <fieldset>
        <legend>站点信息</legend>
        <div class="form-group">
            <label class="col-md-2 control-label" for="txtName">站点名称</label>
            <div class="col-md-10">
                <input class="form-control" placeholder="Site Name" type="text" 
                       id="txtName" name="Name" value="@Model.Name">
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label" for="txtUrl">站点地址</label>
            <div class="col-md-10">
                <input class="form-control" placeholder="Site Url" type="text" 
                       id="txtUrl" name="Url" value="@Model.Url">
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label" for="selType">站点类型</label>
            <div class="col-md-10">
                <select class="form-control" 
                    id="selType" name="Type" value="@Model.Type">
                    <option></option>
                    <option value="0">内部站点</option>
                    <option value="1">外部站点</option>
                </select>
            </div>
        </div>
    </fieldset>

    <div class="form-actions">
        <div class="row">
            <div class="col-md-12">
                <input type="hidden" name="ID" value="@Model.ID" />
                <a class="btn btn-link" href="/manage/site/index">Cancel</a>
                <button class="btn btn-primary" type="submit">
                    <i class="fa fa-save"></i>
                    Submit
                </button>
            </div>
        </div>
    </div>

</form>

<script type="text/javascript">

    // DO NOT REMOVE : GLOBAL FUNCTIONS!
    pageSetUp();

    loadScript('/Assets/SmartAdmin/js/link4ajax.js', function() {
        link4ajax('.form-actions');
    });

</script>